import java.io.File;
import java.io.IOException;
import java.util.zip.ZipFile;

/**
 * @author Nikita.Brazhnikov
 */
public class EjbAccesstest {

	public static final void main(String[] args) {

		ZipFile file = null;
		try {
			File dummyFile = new File("D:\\elteam\\glassfish3\\glassfish\\domains\\domain1\\generated\\ejb\\eartest_ear-1.0\\eartest_ejb.jar");
			file = new ZipFile("D:\\elteam\\glassfish3\\glassfish\\domains\\domain1\\generated\\ejb\\eartest_ear-1.0\\eartest_ejb.jar");
			System.out.println("Successfully opened");
		} catch (IOException e) {
			e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
		} finally {
			if (file != null)
				try {
					file.close();
				} catch (IOException e) {
				}
		}
	}
}
